# -*- coding: utf-8 -*-
# @Time    : 2024/11/18 11:06
# @Author  : wangwei
# @File    : encry_decry.py

import hashlib
import time

from faker import Faker

fake = Faker(locale = 'zh_CN')

def md5(string):
    return hashlib.md5(string.encode(encoding='UTF-8')).hexdigest()


def year():
    return fake.year()

def month():
    return fake.month()

def week():
    return fake.week()

def day():
    return fake.day_of_month()

def gettime():
    return int(time.time()*1000)





if __name__ == '__main__':
    print(md5('123456'))
    print(year())
    print(gettime())
    print(gettimenew())
    # 对于aes加解密来说，需要提供私钥，这个私钥长度一般是16的倍数，最多可能不超过64位


